package cn.yougou.pojo;

import java.io.Serializable;

/**
 * (YgCart)实体类
 *
 * @author 白杰崇
 * @since 2021-01-07 16:33:34
 */
public class YgCart implements Serializable {
    private static final long serialVersionUID = 686615992196734593L;
    /**
     * 主键
     */
    private Integer id;
    /**
     * 用户表的用户ID
     */
    private Integer userid;
    /**
     * 商品表的商品ID
     */
    private Integer commodityid;
    /**
     * 商品名称
     */
    private String commodityname;
    /**
     * 商品货品表的货品ID
     */
    private Integer productid;
    /**
     * 商品货品的价格
     */
    private Double price;
    /**
     * 商品货品的数量
     */
    private Integer number;
    /**
     * 商品规格值列表，采用JSON数组格式
     */
    private String specifications;
    /**
     * 购物车中商品是否选择状态
     */
    private Boolean checked;
    /**
     * 商品图片或者商品货品图片
     */
    private String picurl;
    /**
     * 创建时间
     */
    private String addtime;
    /**
     * 更新时间
     */
    private String updatetime;
    /**
     * 逻辑删除
     */
    private Boolean deleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public String getCommodityname() {
        return commodityname;
    }

    public void setCommodityname(String commodityname) {
        this.commodityname = commodityname;
    }

    public Integer getProductid() {
        return productid;
    }

    public void setProductid(Integer productid) {
        this.productid = productid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public String getPicurl() {
        return picurl;
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "YgCart{" +
                "id=" + id +
                ", userid=" + userid +
                ", commodityid=" + commodityid +
                ", commodityname='" + commodityname + '\'' +
                ", productid=" + productid +
                ", price=" + price +
                ", number=" + number +
                ", specifications='" + specifications + '\'' +
                ", checked=" + checked +
                ", picurl='" + picurl + '\'' +
                ", addtime='" + addtime + '\'' +
                ", updatetime='" + updatetime + '\'' +
                ", deleted=" + deleted +
                '}';
    }
}